﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        
        static void Main(string[] args)
        {
            //电脑专区
            
            Hashtable hashtable = new Hashtable();
           
            hashtable.Add(1, "计算机调试");
            hashtable.Add(2, "计算机购买");
            hashtable.Add(3, "计算机维修");
          

            Console.WriteLine("请输入编号");
            int math = Console.Read();
            
            switch (math)
            {
                case 1: Console.WriteLine("进行计算机调试");
                    break;
                case 2: Console.WriteLine("进行计算机购买");
                    break;
                case 3: Console.WriteLine("进行计算机维修");             
                    break;
            }
            Console.WriteLine("电脑专区信息如下：");
            foreach (DictionaryEntry d in hashtable)
            {
                int key = (int)d.Key;
                string value = d.Value.ToString();
                Console.WriteLine("专区编号：{0}，专区名称：{1}", key, value);
            }


        }
    }
}
